/*
 * public.h
 * @description 本文件提供新添加的定义
 * @package
 * @author 		yinlinlin
 * @copyright
 * @version 		1.0
 * @description 本文件提供新添加的定义
 */


#ifndef Koochat_public_h
#define Koochat_public_h

#import "BanBu_MediaModel.h"
#import "BanBu_AlbumModel.h"
#import "BanBu_CommentMethod.h"
#import "BanBu_ProgressController.h"
#import "BanBu_UserModel.h"
#import "AppCommunicationManager.h"
//相册id：私人 公开 密码
#define Album_privacy @"__album_privacy__"
//头像相册
#define Album_face @"__album_face__"

#define kWBSDKDemoAppKey @"2303352595"
#define kWBSDKDemoAppSecret @"510daac86118f245bfab69df56ad6f32"

//从我的空间进入的我的相册
static NSString * const album_Type = @"singleAlbum";
//刷新标志
static NSString * const album_refresh = @"refreshYes";
static NSString *const BanBu_v2_Move_Fileof_Albumid = @"/_album_v2/_move_file_album2album.php?jsonfrom=";//转移指定照片或视频到其他相册
static NSString *const BanBu_v2_Get_Albumlist_Byuser = @"/_album_v2/_get_albumlist_byuser.php?jsonfrom=";//获取相册列表

static NSString *const BanBu_v2_Delete_Fileof_Albumid = @"/_album_v2/_delete_fileof_byalbumid.php?jsonfrom=";//删除相册中指定照片或视频列表

static NSString *const BanBu_v2_Post_Albumfile_Byuser =  @"/_album_v2/_post_albumfile_byuser_v2.php?";//上传相册文件
static NSString *const BanBu_v2_Create_Album_Byuser = @"/_album_v2/_create_album_byuser.php?jsonfrom=";//创建相册
static NSString *const BanBu_v2_Modify_Album_Byuser = @"/_album_v2/_modify_album_byuser.php?jsonfrom=";//修改相册属性


static NSString *const BanBu_v2_Get_Listof_Albumid = @"/_album_v2/_get_photolist_byalbumid.php?jsonfrom=";//分页获取相册内图片视频列表

static NSString *const BanBu_v2_Set_AlbumFace = @"/_album_v2/_set_albumface_byalbum.php?jsonfrom=";//设置相册封面

static NSString *const BanBu_v2_Set_UserFace = @"/_user_login/_set_my_face_default_v2.php?jsonfrom=";//设置头像

static NSString *const BanBu_v2_Delete_Album = @"/_album_v2/_delete_album_byuser.php?jsonfrom=";//删除相册


//相册列表

static NSString *const BanBu_Add_Friendgroup_Byuser = @"/_friend/_add_friendgroup_byuser.php?jsonfrom=";//创建好友分组

static NSString *const BanBu_Set_Friend_byGroup = @"/_friend/_set_friendlist_bygroup.php?jsonfrom=";//创建好友分组

static NSString *const BanBu_Edit_Friendgroup_Byuser = @"/_friend/_edit_friendgroup_byuser.php?jsonfrom=";//_friend/_edit_friendgroup_byuser.php  编辑好友分组名称接口
static NSString *const BanBu_Del_Friendgroup_Byuser = @"/_friend/_del_friendgroup_byuser.php?jsonfrom=";//_friend/_del_friendgroup_byuser.php 删除好友分组接口
static NSString *const BanBu_Get_Friendgroup_Ofmy = @"/_friend/_get_friendgroup_ofmy.php?jsonfrom=";//_friend/_get_friendgroup_ofmy.php 获取好友分组列表接口

static NSString *const BanBu_Get_Questionlist_Byalbum = @"/_album_v2/_get_questionlist_byalbum.php?jsonfrom=";//获取私密相册问题

static NSString *const BanBu_Get_Friendlist_Bygroup = @"/_friend/_get_friendlist_bygroup.php?jsonfrom=";//通过组名获取,组成员详细列表


//获取用户扩展信息，个人空间使用,2014/07/10添加
static NSString * const BanBu_Get_User_info_v2 = @"/_user_login/_get_user_infor_v2.php?jsonfrom=";

#define kSendLocalVideoNotification @"kSendLocalVideoNotification"
#define kSendPhotosSuccessNotification @"kSendPhotosSuccessNotification"

//举报标志
typedef enum _REPORTTYPE
{
    REPORT_USER = 1,//举报用户
    REPORT_BROADCASR,//举报广播
    REPORT_PHOTO//举报照片
    
}REPORTTYPE;


//相机相册标识
typedef enum _FILETYPE
{
    FILE_ALASSET = 0,//alasset文件
    FILE_PICKER = 1,//从uiimagepicker选取的文件,拍照或摄像
    FILE_KOOLALBUM = 2//半圆相册视频
}FILETYPE;

//创建相册or修改相册属性
typedef enum _ALBUMCREATEORCHANGE
{
    ALBUM_CREATE = 0,
    ALBUM_CHANGE = 1
}ALBUMCREATEORCHANGE;

//相机相册标识
typedef enum _IMAGEPICKER
{
    PHOTO_CAMERA = 0,
    PHOTO_ALBUM = 1
}IMAGEPICKER;

//相册文件标识
typedef enum _ALBUMFILETYPE
{
    ALBUM_PHOTO = 0,//单纯照片
    ALBUM_VIDEO = 1,//视频
    ALBUM_PHOTOWITHSOUND = 2//照片加语音
}ALBUMFILETYPE;

//alert的Tag标识,相册展示界面使用
typedef enum _ALERTTAG
{
    ALERT_DELETEPHOTOS = 101,//删除照片
    ALERT_MOVE = 102,
    ALERT_DELETEALBUM = 103//删除相册
}_ALERTTAG;

//相册照片操作标志
typedef enum _SELECTACTION
{
    ACTION_MOVE = 1,
    ACTION_COPY,//照片复制到另一相册
    ACTION_SETHEAD,//照片设为头像
    ACTION_SETCOVER,//照片设为封面
    ACTION_DELETE//照片删除
}SELECTACTION;

//聊天界面背景图片
#define ChatBackImageData @"ChatBackImageData"
//将16进制颜色转换为uicolor
#define UIColorToRGB(rgbValue) [UIColor colorWithRed:((float)((rgbValue & 0xFF0000) >> 16))/255.0 green:((float)((rgbValue & 0xFF00) >> 8))/255.0 blue:((float)(rgbValue & 0xFF))/255.0 alpha:1.0]

#define UIColorWithRGB(r,g,b,value) [UIColor colorWithRed:(float)r/255.0 green:(float)g/255.0 blue:(float)b/255.0 alpha:(float)value]

//RGB color macro with alpha
#define UIColorFromRGBWithAlpha(rgbValue,a) [UIColor \
colorWithRed:((float)((rgbValue & 0xFF0000) >> 16))/255.0 \
green:((float)((rgbValue & 0xFF00) >> 8))/255.0 \
blue:((float)(rgbValue & 0xFF))/255.0 alpha:a]

//热门关键词键值对,缓存时间1day
#define HotKeyWordKey @"hotKeyWordKey"
#define HotKeyWordTimeKey @"hotKeyWord_time"
#define ChannelTimeInterval       60*60*1*24

//我的收藏键值对，缓存时间1day
#define CollectTimeInterval       60*60*1*24
#define CollectDataKey            @"collect_data"
#define CollectTimeKey            @"collect_time"
#define CollectPageKey            @"collect_page"
//动态键值对
#define DynamicKey @"DynamicKey"

//动态插件键对值,缓存时间3day
#define PlugTimeInterval       60*60*3*24
#define PlugDataKey            @"plug_data"
#define PlugTimeKey            @"plug_time"

//表情商店键对值，缓存时间3day
#define EmoShopTimeInterval       60*60*3*24
#define EmoShopDataKey            @"EmoShop_data"
#define EmoShopTimeKey            @"EmoShop_time"

//2014年10月24日17:13:24 by yinlinlin 弹出开启推送键对值，缓存时间1day
#define LastOpenNoficationTimeInterval       60*60*1*24
#define LastOpenNoficationTimeKey  @"LastOpenNofication_time"

#endif
